import express from 'express';

const router = express.Router();

interface UserInfo {
  name: string;
  age: number;
  gender: 'male' | 'female';
  phone: string;
  address: {
    province: string;
    city: string;
    detail: string;
  };
}

router.get('/getUserInfo', (req, res) => {
  const userInfo: UserInfo = {
    name: '张三',
    age: 28,
    gender: 'male',
    phone: '13800138000',
    address: {
      province: '广东省',
      city: '深圳市',
      detail: '南山区科技园'
    }
  };
  
  res.json({
    code: 0,
    data: userInfo,
    message: 'success'
  });
});

export default router; 